package com.mingserve.report.domain;

import com.mingserve.common.core.utils.DateUtils;
import lombok.Data;

import java.util.List;

/**
 * 报警信息
 *
 * @author: lvwshuai
 * @date: 2025-05-22 11:23
 */
@Data
public class AlarmDto
{
    /**
     * 设备级设备编码
     */
    private String equipmentCode;
    private String pointCode;
    /**
     * 可能会与报警时间不一致
     */
    private Long pointTime;
    private String deviceCode;
    private String alarmType;
    private Long alarmTime;
    private String alarmTimeStr;
    private String alarmContent;
    private List<String> alarmReason;
    private String componentCode;
    private String componentArea;
    private String componentType;
    private String repairSuggestion;
    private String equipmentHealth;
    private Float equipmentUseLife;
    private Float equipmentDegree;

    public String getAlarmTimeStr() {
        return DateUtils.formatDate(alarmTime);
    }
}